<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model app\modules\cruise\models\RoomUse */

$this->title = $model->room->name.$model->room->code.' '.$model->num.'人间';
$this->params['breadcrumbs'][] = ['label' => 'Room Uses', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="room-use-view">

    <h2 class="page-header"><?= Html::encode($this->title) ?>
        <p class="pull-right"> 
            <?= Html::a('修改', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
            <?= Html::a('返回列表', ['index'], ['class' => 'btn btn-danger']) ?>
        </p>
    </h2>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            //'id',
            'room.name',
            'num',
            'code',
            //'download',
            //'status',
            [
                'attribute' => 'download',
                'value' => Yii::$app->params['download'][$model->download],
            ],
            [
                'attribute' => 'status',
                'value' => Yii::$app->params['status'][$model->status],
            ],
            //'user_id',
            'created_at',
            'updated_at',
        ],
    ]) ?>

</div>
